package com.example.springbootmq.receiver;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @ProjectName: mq-demo
 * @Auther: GERRY
 * @Date: 2019/2/25 21:52
 * @Description:
 */
@Component
public class ActiveMqReceiver {
    @JmsListener(destination = "boot-queue")
    public void receiveQueue(String message) {
        System.out.println(message+"已经被消费了");
    }
}
